package com.cheyun.netsalev3.view.dm

import androidx.fragment.app.Fragment
import com.cheyun.netsalev3.R
import com.cheyun.netsalev3.databinding.ActivityDmIndexBinding
import com.cheyun.netsalev3.utils.BaseActivity

class DmIndexActivity : BaseActivity<ActivityDmIndexBinding>() {


    override fun initContentView(): Int {
        return R.layout.activity_dm_index
    }

    var titles = arrayListOf("全部", "待处理", "有效","无效", "待分配")

//    var titles = arrayListOf("巡客通", "转化通", "车主通", "待分配")
    var planType = arrayListOf(1, 2, 3, 4)
    var dealed = arrayListOf(1, 1, 1, 0)
    private var listFragmet = ArrayList<Fragment>()


    override fun initData() {
    }

    override fun initView() {
//        for (i in titles.indices) {
//            listFragmet.add(DmListFragment.newInstance(planType[i],dealed[i]))
//        }
//        val pagerAdapter = HomePageAdapter(supportFragmentManager, listFragmet)
//        pagerAdapter.titles = titles
//        binding.viewPager.offscreenPageLimit = 4
//        binding.viewPager.adapter = pagerAdapter
//        binding.tabLayout.setupWithViewPager(binding.viewPager)
//        binding.headView.rightImg?.setImageResource(R.drawable.d01_6_kc_search)
//        binding.headView.rightImg?.setOnClickListener {
//            var intent = Intent(this, DmSearchActivity::class.java)
//            startActivity(intent)
//        }
    }

}
